package o;

import android.content.pm.PackageInfo;
import android.os.AsyncTask;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;

public class dcw extends AsyncTask<Void, Void, ConcurrentHashMap<String, String>> {
    private c ˎ;

    public interface c {
        void ˏ(ConcurrentHashMap<String, String> concurrentHashMap);
    }

    protected /* synthetic */ Object doInBackground(Object[] objArr) {
        return ˏ((Void[]) objArr);
    }

    protected /* synthetic */ void onPostExecute(Object obj) {
        ˎ((ConcurrentHashMap) obj);
    }

    public dcw(c cVar) {
        this.ˎ = cVar;
    }

    protected ConcurrentHashMap<String, String> ˏ(Void... voidArr) {
        return ˊ();
    }

    protected void ˎ(ConcurrentHashMap<String, String> concurrentHashMap) {
        this.ˎ.ˏ(concurrentHashMap);
    }

    private ConcurrentHashMap<String, String> ˊ() {
        List<PackageInfo> ʻ = ((cdg) cdb.ॱ(cdg.class)).ʻ();
        ConcurrentHashMap<String, String> concurrentHashMap = new ConcurrentHashMap();
        if (ʻ != null) {
            for (PackageInfo packageInfo : ʻ) {
                concurrentHashMap.put(packageInfo.packageName, packageInfo.applicationInfo.loadLabel(ContentManager.getInstant().getContext().getPackageManager()).toString());
            }
        }
        dch.ˎ.ˋ("WishGetInstalledTask", "initAppNameList, size:" + concurrentHashMap.size());
        return concurrentHashMap;
    }
}
